Skip to content

docs: document discrete distribution examples#15

Merged
kholdrex merged 1 commit into
masterfrom
docs/discrete-distribution-readme
Jun 6, 2026
Merged

docs: document discrete distribution examples#15
kholdrex merged 1 commit into
masterfrom
docs/discrete-distribution-readme

Conversation

@kholdrex

@kholdrex kholdrex commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

Document the discrete distribution APIs that are already available in bayes-rs. The README now shows Bernoulli, Binomial, and Poisson alongside the existing continuous distributions so users can find the count-valued distribution path without reading the source first.

Changes

  • Lists Bernoulli, Binomial, and Poisson in the feature overview.
  • Adds a discrete distributions README section covering DiscreteDistribution, pmf, log_pmf, and seeded sampling.
  • Adds README example commands for discrete distributions, conjugate models, and serde-enabled diagnostics serialization.

Test plan

  • Rust formatting check passed.
  • Clippy passed with all targets and all features.
  • Full test suite passed with all features.
  • Documentation build passed with warnings denied.
  • Benchmark compilation passed.
  • README example commands and the new external seeded-sampling snippet were checked.

@kholdrex kholdrex merged commit a0cdfea into master Jun 6, 2026
7 checks passed
@kholdrex kholdrex deleted the docs/discrete-distribution-readme branch June 6, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant